package cn.twh.wall.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "wall.snowflake", ignoreUnknownFields = true)
public class SnowFlakeConfig {
	/**
	 * 数据中心
	 */
	private long datacenterId;
	/**
	 * 机器标识
	 */
    private long machineId;
    
	public void setDatacenterId(long datacenterId) {
		this.datacenterId = datacenterId;
	}
	public void setMachineId(long machineId) {
		this.machineId = machineId;
	}
	public long getDatacenterId() {
		return datacenterId;
	}
	public long getMachineId() {
		return machineId;
	}
}
